﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to ASP.NET!
    </h2>
    <p>
        T<asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" DataKeyNames="carID" 
            DataSourceID="SqlDataSource1" PageSize="4">
            <Columns>
                <asp:BoundField DataField="carID" HeaderText="carID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="carID" />
                <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
                <asp:BoundField DataField="price" HeaderText="price" SortExpression="price" />
                <asp:BoundField DataField="manufacturer" HeaderText="manufacturer" 
                    SortExpression="manufacturer" />
                <asp:BoundField DataField="details" HeaderText="details" 
                    SortExpression="details" />
                <asp:BoundField DataField="image" HeaderText="image" SortExpression="image" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:PROJECT_G5ConnectionString %>" 
            SelectCommand="SELECT * FROM [cars]"></asp:SqlDataSource>
        carID<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="search" />
        <asp:TreeView ID="TreeView1" runat="server" DataSourceID="XmlDataSource1">
            <DataBindings>
                <asp:TreeNodeBinding DataMember="employee" TextField="#Name" />
                <asp:TreeNodeBinding DataMember="person" ValueField="name" />
                <asp:TreeNodeBinding DataMember="age" TextField="#InnerText" />
                <asp:TreeNodeBinding DataMember="gender" ValueField="#InnerText" />
            </DataBindings>
        </asp:TreeView>
        <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/employee.xml">
        </asp:XmlDataSource>
        <asp:TreeView ID="TreeView2" runat="server" DataSourceID="SiteMapDataSource1">
        </asp:TreeView>
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
        o learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.nete">www.asp.net</a>.
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>
</asp:Content>
